package com.yidiandao.business.ui.main.shoppingcart.choosegift;

import android.os.Bundle;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.ChooseGiftSingleListItem;

import java.util.List;

/**
 * 选择赠品-契约类
 *
 * <p>Created by ChenTao(chentao7v@gmail.com) on 2017/2/8 15:41
 */
public interface ChooseGiftContract {

    interface Presenter extends BasePresenter {

        void extraBundle(Bundle bundle);

        void onItemClick(ChooseGiftSingleListItem item);

        void onConfirmChoose();

        void postRefreshShoppingCartStateEvent();
    }

    interface View extends BaseView<Presenter> {

        void setDisplayListItems(List<DisplayListItem> displayListItems);

        void notifyDataSetChanged();

        void finishActivity();

        void setChooseGiftCount(int giftCount);
    }
}
